package com.lagou.edu.service.impl;

import com.lagou.edu.service.UserRpcService;
import com.lagou.edu.service.UserService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class UserRpcServiceImpl implements UserRpcService {
    @Autowired
    private UserService userService;

    @Override
    public boolean isRegistered(String email) {
        return userService.emailRegistered(email);
    }
}
